﻿namespace SqlSharp.Databases;

public abstract class Annotatable(Dictionary<string, string> annotations)
{
    protected Annotatable() : this(new Dictionary<string, string>())
    {
    }

    public string this[string name]
    {
        get
        {
            annotations.TryGetValue(name, out var value);
            return value ?? string.Empty;
        }
    }
}